{% load static %}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>注册</title>
    <link rel="stylesheet" href="{% static 'Lowin/auth.css' %}">
    <style>
        .error{
            color: red;
        }
    </style>
</head>
<body>
    <div class="lowin">
        <div class="lowin-brand">
            <img src="{% static 'Lowin/kodinger.jpg' %}" alt="logo">
        </div>
        <div class="lowin-wrapper" style="min-height: 442px;">
            <div class="lowin-box lowin-login" style="display: block;">
                <div class="lowin-box-inner">
                    <form action="" method="post" novalidate>
                        {% csrf_token %}
                        <p>注册一个账户吧</p>
                        {% for field in obj %}
                            <div class="lowin-group">
                                <label for="{{ field.id_for_label }}">{{ field.label }}
                                    <span class="error">{{ field.errors.0 }}</span>
                                </label>
                                {{ field }}
                            </div>
                        {% endfor %}
                        <label for=""><a href="{% url 'select:login' %}">返回登录</a></label>
                        <button class="lowin-btn login-btn">注册</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</body>
</html>